<?php 
	header("Content-type:text/html;charset=utf-8"); 
	$id=$_POST['id'];
	//连接数据库
	$con=new mysqli("localhost","root","123456","myDB");
	$con->query("set names utf8");
	if($con->connect_error){
		die($con->connect_error);
	}
	// //删除数据
	$sql="DELETE FROM users WHERE id=$id";
	if($con->query($sql)===true){
		echo json_encode(array('Success' => true, 'Msg' => '删除成功'));
	}else{
		echo json_encode(array('Success' => false, 'Msg' => '删除失败'));
	}
	$con->close();
?>